package com.powernode.business.service;

import com.powernode.business.domain.Car;
import com.powernode.business.dto.CarDto;
import com.powernode.common.core.domain.model.LoginUser;

import java.util.List;

public interface CarService{


    int deleteByPrimaryKey(Integer id);

    int insert(Car record);

    int insertSelective(Car record);

    Car selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Car record);

    int updateByPrimaryKey(Car record);

    List<Car> selectCarList(Car car, LoginUser loginUser);

    /**
     * 新增车辆
     * @param carDto
     * @param loginUser
     * @return
     */
    int addCar(CarDto carDto, LoginUser loginUser);

    int deleteCar(List<Integer> ids, LoginUser loginUser);

    CarDto getCarInfo(Integer id);

    int updateCar(CarDto carDto, LoginUser loginUser);
}
